package com.software.chemistry.repository;

import com.software.chemistry.entity.StudentInfo;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface StudentInfoRepository extends JpaRepository<StudentInfo, String> {


    List<StudentInfo> findStudentByUserNameAndPassword(String userName, String password);


    List<StudentInfo> findStudentInfoByUserName(String param_username);

    List<StudentInfo>findStudentInfosByUserIdOrUserName(String userId, String UserName) ;
    List<StudentInfo> findStudentInfosByClassId(String ClassId);

    StudentInfo findStudentInfoByUserId(String userId);
}
